package com.linesum.code;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 
 * @author chenzf
 * @date 2017年7月27日
 */
@SpringBootApplication
//@EnableTransactionManagement(proxyTargetClass = true)
//应用ehcache和基本的缓存，如果使用redis，打开redisconfig
//@EnableCaching
//启用异步调用
@EnableAsync
//启用任务调度(好像不用开都可以只要有打上@Scheduled就可以了)
//@EnableScheduling
//启用aop
@EnableAspectJAutoProxy
public class SpringBootStartApplication extends SpringBootServletInitializer {
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(SpringBootStartApplication.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(SpringBootStartApplication.class, args);
	}
}
